package com.cumt.websocket;

import javax.websocket.*;
import java.io.IOException;

/**
 * Created by caicf on 2017/1/11.
 */
public interface BaseWebSocketEndpoint {

    void onOpen(Session session);

    void onMessage(String txt, Session session);

    void onClose(CloseReason reason, Session session);

    void onError(Throwable throwable);
}
